package com.doxiaopu.students.order.mapper;

import com.doxiaopu.students.order.entity.Order;

import java.util.List;

public interface OderMapper {
    /**
     * 增加订单
     * @param order
     * @return
     */
    Integer addOder(Order order);

    /**
     * 查询所有订单
     * @return
     */
    List<Order> getOder(String userid);

    /**
     * 通过type查订单
     * @param types
     * @return
     */
    List<Order> getOderByType(Integer types,String userid);

    /**
     * 查询订单二维码
     * @param orderId
     * @return
     */
    Order findOrderByOrderId(Long orderId);
}
